Skip to content

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Jul 30, 2025

When a crud upload completes just after a stream iteration has already been cancelled, we may be pushing data into a closed stream, causing warnings. This adds a check to fix that problem.

I've added a test to reproduce the original issue. The issue is caused by a race condition and the test doesn't reproduce it very reliably, but I was able to trigger the reported issue and verify that this fixes it.

Copy link

changeset-bot bot commented Jul 30, 2025

🦋 Changeset detected

Latest commit: 7fcc0b1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@powersync/common Patch
@powersync/adapter-sql-js Patch
@powersync/node Patch
@powersync/op-sqlite Patch
@powersync/react-native Patch
@powersync/tanstack-react-query Patch
@powersync/web Patch
@powersync/diagnostics-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@simolus3 simolus3 changed the title Test connecting from listener Rust client: Fix warning on reconnects during crud uploads Jul 31, 2025
@simolus3 simolus3 requested a review from stevensJourney July 31, 2025 15:55
@simolus3 simolus3 force-pushed the test-connection-from-listener branch from 7fcc0b1 to 83b54e7 Compare August 5, 2025 19:03
@simolus3 simolus3 merged commit 7f2c53d into main Aug 5, 2025
9 checks passed
@simolus3 simolus3 deleted the test-connection-from-listener branch August 5, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants